package com.gmadmin.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.gmadmin.common.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 角色表
 *
 * @author zl.sir
 * @since 2021-12-06
 */
@TableName("sys_role")
public class SysRole extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 5740308666779520829L;
	/**
	 * ID
	 */
	@TableId(value = "role_id",type = IdType.AUTO)
	private Long id;

	/**
	 * 名称
	 */
 	@TableField("name")
	private String name;

	/**
	 * 角色级别
	 */
 	@TableField("level")
	private Integer level;

	/**
	 * 描述
	 */
 	@TableField("description")
	private String description;

	/**
	 * 数据权限
	 */
 	@TableField("data_scope")
	private String dataScope;

	 @TableField("enabled")
	private Boolean enabled;

	@TableField(exist = false)
 	private List<SysMenu> menus;


  public Long getId() {
    return id;
  }

  public void setId(Long roleId) {
    this.id = roleId;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public Integer getLevel() {
    return level;
  }

  public void setLevel(Integer level) {
    this.level = level;
  }


  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }


  public String getDataScope() {
    return dataScope;
  }

  public void setDataScope(String dataScope) {
    this.dataScope = dataScope;
  }


	public List<SysMenu> getMenus() {
		return menus;
	}

	public void setMenus(List<SysMenu> menus) {
		this.menus = menus;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}
}
